package cn.cdeden.knowledge.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @ProjectName : dms_be_2024
 * @Package : com.cdyd.ecm.notice.message.util.enums
 * @ClassName : MessageTmcEnums
 * @Author : Yu.
 * @Description : // TODO
 * @Date : 2024/6/24 13:42
 * @Version : 1.0
 */

@Getter
@AllArgsConstructor
public enum MessageTmcEnums {
//    课程：course   考核：examTask     培训计划：coursePlan   考核计划：taskPlan */
    COURSE("course","课程"),
    EXAM_TASK("examTask","考核"),
    COURSE_PLAN("coursePlan","培训计划"),
    TASK_PLAN("taskPlan","考核计划"),


    ;

    private String code;
    private String name;


    public static MessageTmcEnums find(String code) {
        for (MessageTmcEnums messageTmcEnums : MessageTmcEnums.values()) {
            if (messageTmcEnums.getCode().equals(code)) {
                return messageTmcEnums;
            }
        }
        return null;
    }

}
